<template>
  <InputPassword v-model="value" :strength="strength" />
</template>
<script setup lang="ts">
  import { InputPassword } from '@/components/InputPassword';
  import { ref, watch, watchEffect } from 'vue';  
  import { Column } from '@/seed-application/types';

  const props = defineProps<{column: Column, modelValue: any, strength?: boolean}>()
  const strength = props.strength
  const emits = defineEmits(['update:modelValue'])

  const value = ref<string>(props.modelValue)

  watchEffect(() => emits('update:modelValue', value.value))
  watch(() => props.modelValue, (val) => value.value = val)
</script>